<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:rich="http://richfaces.ajax4jsf.org/rich"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:ctg="http://www.crotouristguide.com/taglib"
	xmlns:c="http://java.sun.com/jsp/jstl/core" >

<ui:component>
		    <h3><h:outputText value="#{title}" rendered="#{title != null}"/></h3>
			<rich:dataGrid columns="1" elements="3" value="#{value}" var="o">
				<h:panelGroup>
					<h:outputLink value="http://#{objava.www}"  ><h:outputText value="#{o.naslov}" /></h:outputLink>
					<br/>
					<h:outputText value="#{stringUtil.substring(o.tekst, 50)}" />...
					<h:outputLink value="http://#{objava.www}" styleClass="new-window"><h:outputText value="#{messages['label.link.more']}"></h:outputText></h:outputLink>
					<br/>
					<h:outputText value="#{o.stranica}" styleClass="site"/>				
					<br/>
				</h:panelGroup>
			</rich:dataGrid>
			<s:div>
				<s:link view="/guides/objave/list.xhtml" value="#{messages['label.read.all']}" propagation="none" rendered="#{value.size > 0 or identity.hasRole('1') == true}">					
					<f:param name="tip" value="#{tip}"/>	
				</s:link>
			</s:div>			
</ui:component>

</html>